﻿<!DOCTYPE HTML>
<html>
<head>
<#include "/script.ftl">
<script type="text/javascript" src="../static/eth/js/jElass.js"></script>
<script type="text/javascript" src="../static/eth/js/jElassExec.js"></script>
<script type="text/javascript" src="../static/eth/js/policyList.js"></script>
<title>政策列表</title>
</head>
<body id="body">
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span>政策管理
		<span class="c-gray en">&gt;</span> 公布运价政策
	</nav>
	<div class="page-container">
		<form id="form" action="list" method="get">
			<div class="text-c">
			    <div class="search_line">
			        <div class="search_item">
			            <label>航班类型</label>
						<input type="text" value="${cond.journeyType!''}" placeholder="" id="" name="journeyType" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>航空公司</label>
						<input type="text" value="${cond.airline!''}" placeholder="" id="" name="airline" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>行程类型</label>
						<input type="text" value="${cond.flightType!''}" placeholder="" id="" name="flightType" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>舱位</label>
						<input type="text" value="${cond.departureCabins!''}" placeholder="" id="" name="departureCabins" class="input-text">
			        </div>
				</div>
				<div class="search_line">
			        <div class="search_item">
			            <label>出发地</label>
						<input type="text" value="${cond.departure!''}" onClick="AirportCode('departureName', 'departure')" placeholder="" id="departureName" name="departureName" class="input-text">
						<input type="hidden" id="departure" name="departure" value="">
			        </div>
			        <div class="search_item">
			            <label>目的地</label>
			            <input type="text" value="${cond.arrival!''}" onClick="AirportCode('arrivalName', 'arrival')" placeholder="" id="arrivalName" name="arrivalName" class="input-text">
						<input type="hidden" id="arrival" name="arrival" value="">
			        </div>
			        <div class="search_item">
			            <label>政策编号</label>
						<input type="text" value="${cond.policyId!''}" placeholder="" id="" name="policyId" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>文件编号</label>
						<input type="text" value="${cond.policyGroup!''}" placeholder="" id="" name="policyGroup" class="input-text">
			        </div>
				</div>
				<div class="search_line">
			        <div class="search_item">
			            <label>票本类型</label>
						<input type="text" value="${cond.ticketType!''}" placeholder="" id="" name="ticketType" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>政策状态</label>
						<input type="text" value="${cond.status!''}" placeholder="" id="" name="status" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>政策来源</label>
						<input type="text" value="${cond.source!''}" placeholder="" id="" name="source" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>政策别名</label>
						<input type="text" value="${cond.name!''}" placeholder="" id="" name="name" class="input-text">
			        </div>
				</div>
				<div class="search_line">
			        <div class="search_item">
			            <label>office</label>
						<input type="text" value="${cond.officeNo!''}" placeholder="" id="" name="officeNo" class="input-text">
			        </div>
			        <div class="search_item">
			            <label>自动出票</label>
			            <div class="radio-group">
			                <input type="hidden" id="autoTicketingFlag" value="${cond.autoTicketingFlag!''}" class="resume-check"/>
							<input name="autoTicketingFlag" type="radio" id="autoTicketingFlag-Y" value="Y">
							<label for="autoTicketingFlag-Y">是</label>
							<input name="autoTicketingFlag" type="radio" id="autoTicketingFlag-N" value="N" checked>
							<label for="autoTicketingFlag-N">否</label>
			            </div>
			        </div>
			        <div class="search_item">
			            <label>上周末出票</label>
			            <div class="radio-group">
			                <input type="hidden" id="lastWeekFlag" value="${cond.lastWeekFlag!''}" class="resume-check"/>
							<input name="lastWeekFlag" type="radio" id="lastWeekFlag-Y" value="Y" class="radio">
							<label for="lastWeekFlag-Y">是</label>
							<input name="lastWeekFlag" type="radio" id="lastWeekFlag-N" value="N" checked class="radio">
							<label for="lastWeekFlag-N">否</label>
			            </div>
			        </div>
			        <div class="search_item">
			            <label>换编码</label>
						<input type="text" value="${cond.ticketingType!''}" placeholder="" id="" name="ticketingType" class="input-text">
			        </div>
				</div>
				<div class="search_line">
				    <div class="search_item2">
			            <label>起止日期</label>
		                <input type="text" name="outboundTravelDateStartStr" value="${cond.outboundTravelDateStartStr!''}" onfocus="WdatePicker()" class="input-text Wdate ml-10" placeholder="yyyy-mm-dd" autocomplete="off" id="outboundTravelDateStartStr">
		                <input type="text" name="outboundTravelDateEndStr" value="${cond.outboundTravelDateEndStr!''}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'outboundTravelDateStartStr\')}'})" class="input-text Wdate ml-10" placeholder="yyyy-mm-dd" autocomplete="off" id="outboundTravelDateEndStr">
			        </div>
			        <div class="search_item"></div>
			        <div class="search_item"></div>
			        <div class="search_item">
			            <a onclick="$('#form').submit();" href="javascript:;" class="btn btn-primary radius">查询</a> 
				        <a onclick="" href="javascript:;" class="btn btn-primary radius">重置</a> 
			        </div>
				</div>
				<input type="text" style="display:none"  name="pageIndex" id="pageIndex" value="${page.curIndex!''}" /> 
				<input type="text" style="display:none"  name="pageSize" id="pageSize" value="${page.pageSize!''}" /> 
				<input type="text" style="display:none" name="rowsCount" id="rowsCount" value="${page.rowsCount!''}" />
			</div>
			
			<div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l"> 
				    <a onclick="layer_open('新增政策','editPage')" href="javascript:;" class="btn btn-primary radius">新增政策</a> 
				    <a onclick="policy_putons()" href="javascript:;" class="btn btn-danger radius">启用</a> 
				    <a onclick="policy_pulloffs()" href="javascript:;" class="btn btn-danger radius">挂起</a> 
				    <a onclick="policy_putons_all()" href="javascript:;" class="btn btn-danger radius">全部启用</a>
				    <a onclick="policy_pulloffs_all()" href="javascript:;" class="btn btn-danger radius">全部挂起</a>
				    <a onclick="policy_copy()" href="javascript:;" class="btn btn-primary radius">复制转换</a>
				    <a onclick="policy_dels()" href="javascript:;" class="btn btn-danger radius">删除</a>
				</span>
			</div>
			<div class="mt-20">
				<table class="table table-border table-bordered table-bg table-hover table-sort">
					<thead>
						<tr class="text-c">
							<th width="40"><input name="choosePolicy" id="choosePolicy" type="checkbox" onClick="choose_policys()" value=""></th>
							<th width="80"><p>政策编号<p>行程类型</th>
							<th width="60">航空公司</th>
							<th width="140">起止日期</th>
							<th width="150">出发</th>
							<th width="150">到达</th>
							<th width="50">舱位</th>
							<th width="20">扣率</th>
							<th width="60">状态</th>
							<th width="40"><p>自动<p><p>出票<p></th>
							<th width="100">最后日期</th>
							<th width="100">政策别名</th>
						</tr>
					</thead>
					<tbody class="text-c">
						<#list page.items! as policy>
						<tr class="text-c" ondblclick="layer_open('编辑政策','editPage?policyId=' + ${policy.policyId})">
							<td><input name="policyIds" type="checkbox" value="${policy.policyId}" onClick="choose_policy()"></td>
							<td class="td-id"><p>${policy.policyId}</p><p>${policy.flightTypeName!}</p></td>
							<td class="text-c">${policy.airlineName!}</td>
							<td class="text-c"><p>${policy.outboundTravelDateStartStr!}至${policy.outboundTravelDateEndStr!}</p><p>回城沿用至${policy.inboundTravelDateEndStr!}</p></td>
							<td class="text-c"><div class="of-hidden" style="width:150px;" title="${policy.departureName!}">${policy.departureName!}</div></td>
							<td class="text-c"><div class="of-hidden" style="width:150px;" title="${policy.arrivalName!}">${policy.arrivalName!}</div></td>
							<td class="text-c"><div class="of-hidden" style="width:60px;" title="${policy.departureCabins!}">${policy.departureCabins!}</div></td>
							<td class="text-c">${policy.commision!}</td>
							<td class="text-c"><span class="label label-success radius">${policy.statusName!}</span></td>
							<td class="text-c">${policy.autoTicketingFlagName!}</td>
							<td class="text-c">${policy.ticketingDateEndStr!}</td>
							<td class="text-c">${policy.name!}</td>
						</tr>
						</#list>
					</tbody>
				</table>
			</div>
		</form>
		<div id="Pagination" class="pagination mt-20"></div>
	</div>
	<script type="text/javascript">

</script>
</body>
</html>